package com.njcky.utils.citylife;

/**
 * @Author: hjl
 * @Date: 2023/11/20 15:02
 * @Desc:
 */
public class CommonUtil {
	/**
	 * 判断是否是整数或者小数
	 * @param str
	 * @return
	 */
	public static boolean isNumeric(String str){

		try {
			double num = Double.parseDouble(str);
			if (num % 1 == 0) {
				return true;
			} else {
				return true;
			}
		} catch (NumberFormatException e) {
			return false;
		}
	}
}
